package com.itheima.controller;

import com.itheima.domain.Employee;
import com.itheima.service.EmployeeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: hsp
 * @Date: 2022/12/11-12-11-16:34
 * @Description: com.itheima.controller
 * @version: 1.0.0
 */
@RestController
@RequestMapping("/admin/emps")
public class EmployeeController {

    @Resource
    private EmployeeService employeeService;

    //查询所有员工列表
    @GetMapping("/findAll")
    public List<Employee> findAll(){
        return employeeService.findAll();
    }


}
